package dhy.lyb.change.service.impl;

import dhy.lyb.change.dao.ActivityDao;
import dhy.lyb.change.dao.UserDao;
import dhy.lyb.change.model.Activity;
import dhy.lyb.change.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by Administrator on 2016/11/29.
 */
@Service("activityService")
public class ActivityServiceImpl extends BaseServiceImpl<Activity> implements ActivityService {

    @Autowired
    private ActivityDao activityDao;

    @Autowired
    public void setBaseDao() {
        super.setBaseDao(activityDao);
    }

    public List<Integer> getCount() {
        return activityDao.getCount();
    }

    public Integer getActivityCount() {
        return activityDao.getActivityCount();
    }

    public List<Activity> getExtendsActivities(List<Integer> ids) {
        return activityDao.getExtendsActivities(ids);
    }
}
